$(function () {
    $.ajax({
        url: "./../server/getGoods.php",
        dataType: "json"
    }).done(function (res) {
        res.forEach((el, index) => {
            let strHtml = `<li> 
                                <a href="./xiangqing.html?pid=${el.pid}">
                                    <img src="../server/${el.imgUrl}">
                                </a>
                            </li>`;
            $(".map_bottom>ul").append(strHtml);
        })
    })
})